package simple_factory

import "fmt"

type tRedmiLight struct {
	LightInfo
}

func newRedmiLight(info *LightInfo) *tRedmiLight {
	return &tRedmiLight{
		*info,
	}
}

func (me *tRedmiLight) Open() error {
	fmt.Printf("tRedmiLight.Open, %v\n", &me.LightInfo)
	return nil
}

func (me *tRedmiLight) Close() error {
	fmt.Printf("tRedmiLight.Close, %v\n", &me.LightInfo)
	return nil
}